<html>

<head>
<title>Preferences - SWT &gt; Code Generation &gt; JFace Data Bindings</title>
<link href="../../../book.css" rel="stylesheet" type="text/css">
</head>

<body>

<table border="0" cellpadding="0" cellspacing="0" width="800">
  <tr>
    <td><h1>Preferences - SWT &gt; Code Generation &gt; JFace Data 
	Bindings</h1>
    <p>
	<img src="images/preferences_jface_data_bindings.gif"></p>
      <p>This page is used to control various <b>JFace Data Binding</b> options.</p>
	<h2>Add initDataBindings() invocation to GUI creation method</h2>
      <p>This preference determines whether the <b>initDataBindings()</b> method 
		should be generated into the 
		GUI creation method (constructor, createContents(), initGUI(), 
		jbInit(), etc.).<h2>Assign return value of initDataBindings() invocation 
	to field</h2>
      <p>This preference determines whether the <b>DataBindingContext</b> 
		returned by the <b>initDataBindings()</b> method should be assigned to a 
		field for future access.<h2>Don't use deprecated methods of 
	BeansObservables</h2>
      <p>This preference determines deprecated methods of BeansObservables are 
		used. When turned on, the tool will generate Eclipse 3.5 compatible code 
		only. When turned off, the tool will generate code that will run in 
		earlier versions of Eclipse using code that was deprecated in Eclipse 
		3.5.</p>
	<h2>Enclose databinding code in try-catch block</h2>
      <p>This preference determines whether the databinding code will be 
		generated within a try-catch block.</p>
	<h2>Generate observable code for version 1.3 (over properties)</h2>
      <p>This preference determines whether the databinding v1.3 API will be 
		used for generated observables code.</p>
	<h2>Use ViewerSupport for generating JFace Viewer bindings</h2>
      <p>This preference determines whether ViewerSupport is used for generating 
		JFace Viewer bindings.</p>
	<h2>Add initDataBindings() invocation to 
	Composite constructor</h2>
      <p>This preference determines whether the <b>initDataBindings()</b> method 
		should be generated into the constructor for a Composite.</p>
	<h2>Default value for new strategy object</h2>
      <p>This preferences determine the default values used for new 
		UpdateValueStrategies, UpdateListStrategies and UpdateSetStrategies.<h2>Generate initDataBindings() with access</h2>
      <p>This preference determines the visibility access of the <b>
		initDataBindings()</b> method.<h2>Preview</h2>
	<p>This shows a sample of the generated data binding code given the 
	preference settings above.</p></td>
  </tr>
</table>
</body>
</html>
